package com.practice.ajCollections010.map.hashmap;

import java.util.concurrent.ConcurrentHashMap;

/**
 * 高并发切线程安全
 * ConcurrentHashMap 通过使用 synchronized 关键字锁部分关键代码段来保证线程安全
 */
public class ConcurrentHashMapP {
    public static void main(String[] args) {
        ConcurrentHashMap<String, String> concurrentHashMap = new ConcurrentHashMap<>();
        concurrentHashMap.put("hello", "world");
    }
}
